package cn.com.headfree.vo.simple;

import cn.com.headfree.util.SysDictionaryUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang.StringUtils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class SkillLevelInfoVo {

    private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    /**
     * erp编号
     */
    private String erpNo;
    /**
     * 身份证号
     */
    private String idCardNo;
    /**
     * 取得时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date acquTime;

    private String acquTimeStr;

    /**
     * 技能鉴定工种
     */
    private String techType;
    /**
     * 职业资格等级
     */
    private String qualifiLevel;
    /**
     * 审批单位
     */
    private String auditOrg;
    /**
     * 审批单位级别
     */
    private String orgLevel;
    /**
     * 证书编号
     */
    private String certNo;
    /**
     * 创建者id
     */
    private String createrId;
    /**
     * 创建者姓名
     */
    private String createrName;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;
    /**
     * 更新者id
     */
    private String updaterId;
    /**
     * 更新者姓名
     */
    private String updaterName;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;

    public String getAcquTimeStr() {
        return acquTimeStr;
    }

    public void setAcquTimeStr(String acquTimeStr) {
        if (StringUtils.isNotBlank(acquTimeStr)) {
            this.acquTimeStr = acquTimeStr.split(" ")[0];
        } else {
            this.acquTimeStr = acquTimeStr;
        }
    }

    /**
     * 0:未删除1：已删除
     */
    private Integer delSign;
    /**
     * 是否有效数据(0:有效，1:无效)
     */
    private Integer isValid;
    /**
     * 审核状态
     */
    private Integer auditState;

    /**
     * 原始数据ID
     */
    private String orignalId;

    /**
     * 姓名
     */
    private String userName;

    private String id;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getErpNo() {
        return erpNo;
    }

    public void setErpNo(String erpNo) {
        this.erpNo = erpNo;
    }

    public String getIdCardNo() {
        return idCardNo;
    }

    public void setIdCardNo(String idCardNo) {
        this.idCardNo = idCardNo;
    }

    public Date getAcquTime() {
        return acquTime;
    }

    public void setAcquTime(Date acquTime) {
        this.acquTime = acquTime;
        if (acquTime!=null){
            this.acquTimeStr=sdf.format(acquTime).split(" ")[0];
        }
    }

    public String getTechType() {
        return techType;
    }

    public void setTechType(String techType) {
        this.techType = techType;
//        this.techType = SysDictionaryUtil.getNameByValue("SkillAppraisalWork",techType);;
    }

    public String getQualifiLevel() {
        return qualifiLevel;
    }

    public void setQualifiLevel(String qualifiLevel) {
        this.qualifiLevel = qualifiLevel;
//        this.qualifiLevel = SysDictionaryUtil.getNameByValue("QualificationLevel",qualifiLevel);
    }

    public String getAuditOrg() {
        return auditOrg;
    }

    public void setAuditOrg(String auditOrg) {
        this.auditOrg = auditOrg;
    }

    public String getOrgLevel() {
        return orgLevel;
    }

    public void setOrgLevel(String orgLevel) {
        this.orgLevel = orgLevel;
//        this.orgLevel = SysDictionaryUtil.getNameByValue("IdentificationUnitLevel",orgLevel);
    }

    public String getCertNo() {
        return certNo;
    }

    public void setCertNo(String certNo) {
        this.certNo = certNo;
    }

    public String getCreaterId() {
        return createrId;
    }

    public void setCreaterId(String createrId) {
        this.createrId = createrId;
    }

    public String getCreaterName() {
        return createrName;
    }

    public void setCreaterName(String createrName) {
        this.createrName = createrName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdaterId() {
        return updaterId;
    }

    public void setUpdaterId(String updaterId) {
        this.updaterId = updaterId;
    }

    public String getUpdaterName() {
        return updaterName;
    }

    public void setUpdaterName(String updaterName) {
        this.updaterName = updaterName;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getDelSign() {
        return delSign;
    }

    public void setDelSign(Integer delSign) {
        this.delSign = delSign;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public Integer getAuditState() {
        return auditState;
    }

    public void setAuditState(Integer auditState) {
        this.auditState = auditState;
    }

    public String getOrignalId() {
        return orignalId;
    }

    public void setOrignalId(String orignalId) {
        this.orignalId = orignalId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
